package cn.gzjp.modules.it.entity;

import org.hibernate.validator.constraints.Length;

import cn.gzjp.common.persistence.DataEntity;
import cn.gzjp.common.utils.excel.annotation.ExcelField;

/**
 * 车牌数据Entity
 * @author zengcp
 * @version 2018-01-30
 */
public class PlateData extends DataEntity<PlateData> {
	
	private static final long serialVersionUID = 1L;
	private String id;
	private String province;		// 省份
	private String city;		// 城市
	private String areaCode;		// 区号
	private String plateCode;		// 车牌地区编码
	private String wzstatus;		// 违章条件
	
	public PlateData() {
		super();
	}

	public PlateData(String id){
		super(id);
	}
	
	
	
	@ExcelField(title="车牌的确", align=2, sort=1)
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Length(min=0, max=32, message="省份长度必须介于 0 和 32 之间")
	@ExcelField(title="省份", align=2, sort=2)
	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}
	
	@Length(min=0, max=32, message="城市长度必须介于 0 和 32 之间")
	@ExcelField(title="城市", align=2, sort=3)
	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}
	
	@Length(min=0, max=32, message="区号长度必须介于 0 和 32 之间")
	@ExcelField(title="区号", align=2, sort=4)
	public String getAreaCode() {
		return areaCode;
	}

	public void setAreaCode(String areaCode) {
		this.areaCode = areaCode;
	}
	
	@Length(min=0, max=32, message="车牌地区编码长度必须介于 0 和 32 之间")
	@ExcelField(title="车牌地区编码", align=2, sort=5)
	public String getPlateCode() {
		return plateCode;
	}

	public void setPlateCode(String plateCode) {
		this.plateCode = plateCode;
	}
	
	@Length(min=0, max=1, message="违章条件长度必须介于 0 和 1 之间")
	@ExcelField(title="违章条件", align=2, sort=6)
	public String getWzstatus() {
		return wzstatus;
	}

	public void setWzstatus(String wzstatus) {
		this.wzstatus = wzstatus;
	}
	
}